#ifndef DIAADDPERSON_H
#define DIAADDPERSON_H

#include <QDialog>
#include <QString>
#include <QDate>
#include <QMenu>
#include <QAction>
#include <QEvent>
#include "diasetx.h"
#include <QtXml/QtXml>

namespace Ui {
class DiaAddPerson;
}

class DiaAddPerson : public QDialog
{
    Q_OBJECT

public:
    explicit DiaAddPerson(QWidget *parent = 0);
    ~DiaAddPerson();
    QString getFio();
    QString getProfesio();
    QString getTableNumber();
    QStringList getCalendar();
    void insertFio(QString txt);
    void insertProfesio(QString txt);
    void insertTableNumber(QString txt);
    void InitCalendar(QDate dt);
    void fromXmlToCalendar(QStringList list);
    void fromCalendarToXml(QStringList list);
private:
    Ui::DiaAddPerson *ui;
    bool eventFilter(QObject *, QEvent *);
    QAction * actSetX;
    QAction * actClearX;
private slots:
    void slotTestaccept();
    void slotSetX();
    void slotClearX();
    void slotDoubleClick(int row, int column);
};

#endif // DIAADDPERSON_H
